|
|
|
|
|
|
|
Figure 25.9
You can add new capabilities to
the data entry screen by assigning
program commands to command buttons. |
|
|
|
|
|
|
|
|
Creating Forms Automatically |
|
|
|
|
|
|
|
|
Using the bound controls, you can easily create data entry forms with a minimum of effort. You just draw the controls on your form, set a few properties, and you're done. What could be easier? |
|
|
|
|
|
|
|
|
Well, actually you can create data entry forms in an even easier wayby using the Data Form Wizard (DFW). The DFW is one of the add-ins that comes with Visual Basic. Using this add-in, you can select a database and a record source; then it creates your data entry form automatically. Of course, the form might not be exactly like you want it, but you can easily change the default design and then save the changes. Using the DFW is a great way to create a series of data entry forms rapidly for a prototype or for a simple application. |
|
|
|
|
|
|
|
|
Setting Up the Data Form Wizard |
|
|
|
|
|
|
|
|
Again, the DFW is one of the add-ins that comes with Visual Basic. If, however, you choose the Add-Ins menu in Visual Basic, you don't see this option initially. You have to first tell Visual Basic that you want access to the form designer. You do so by choosing Add-Ins, Add-In Manager. The Add In Manager dialog box, shown in Figure 25.10, then appears. |
|
|
|
|
|
|
|
|
Figure 25.10
By using the Add-In Manager, you can add
capabilities to your Visual Basic design environment. |
|
|
|
|
|
|
|
|
To access the DFW, highlight the VB 6 Data Form Wizard item in the list, and then click the Loaded/Unloaded check box. The word Loaded should appear in the rightmost column of the Add-In list. Next, click OK and you're set. Now, when you select the Add-Ins menu, you see the DFW as one of the items. Selecting the DFW opens the wizard's Introduction dialog box, which |
|
|
|
|
|